package com.easylinkin.linkappapi.grid.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 网格上传文件
 *
 * @author kuyujie
 * @since 2024-05-23
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("grid_file")
public class GridFile implements Serializable{
    private static final long serialVersionUID=1L;

    @TableId(type = IdType.AUTO)
    @TableField(value = "id")
    private Integer id;

    /**
     * 业务id
     */
    @TableField(value = "bus_id")
    private String busId;

    /**
     * 1:日报 2:周报
     */
    @TableField(value = "bus_type")
    private Integer busType;

    /**
     * 业务子类型
     */
    @TableField(value = "bus_sub_type")
    private Integer busSubType;

    /**
     * 业务子内容（自定义）
     */
    @TableField(value = "bus_sub_content")
    private String busSubContent;

    /**
     * 文件url
     */
    @TableField(value = "file_url")
    private String fileUrl;

    /**
     * 文件名称
     */
    @TableField(value = "file_name")
    private String fileName;

}
